<?php
declare (strict_types=1);

namespace app\api\validate;

use think\Validate;

class Address extends Validate
{
    protected $rule = [
        "nickname" => "require",
        "tel" => "require|mobile",
        "province" => "require",
        "city" => "require",
        "details" => "require"
    ];

    protected $message = [
        'nickname.require' => '请输入收货人',
        'tel.require' => '请输入手机号',
        'tel.mobile' => '手机号格式有误',
        'province.require' => '请选择省',
        'city.require' => '请选择市',
        'details.require' => '请输入详细地址'
    ];
}